package Song.Han.day05.demo04;
/*
* java.lang.Math
* public static double abs(double num):获取绝对值
* public static double ceil(double num):向上取整
* public static double floor(double num):向下取整
* public static lang round(double num):四舍五入
*
* Math.PI
 */
public class Demo03Math {

    public static void main(String[] args) {

        System.out.println(Math.abs(-1.0));
        System.out.println(Math.abs(3.0));
        System.out.println(Math.abs(2.33));
        System.out.println("--------------------------------");

        System.out.println(Math.ceil(17.10));
        System.out.println(Math.ceil(17.80));
        System.out.println(Math.ceil(17.00));
        System.out.println("--------------------------------");

        System.out.println(Math.floor(17.10));
        System.out.println(Math.floor(17.80));
        System.out.println(Math.floor(17.00));
        System.out.println("--------------------------------");

        System.out.println(Math.round(17.10));
        System.out.println(Math.round(17.80));
        System.out.println(Math.round(17.00));
        System.out.println("--------------------------------");

        System.out.println(Math.PI);

    }
}
